home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / RDP / rdp_ip.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-18  |  1.7 KB  |  41 lines

  1. /**************************************************************************/
  2. /*       Copyright(c) 1987, 1992 by BBN Systems and Technologies,         */
  3. /*         A Division of Bolt Beranek and Newman Inc.                     */
  4. /*                                                                        */
  5. /*       RDP implementation for 4.2/4.3bsd by Craig Partridge             */
  6. /*                                                                        */
  7. /*  Permission to use, copy, modify, distribute, and sell this software   */
  8. /*  and its documentation for any purpose is hereby granted without fee,  */
  9. /*  provided that the above copyright notice and this permission appear   */
  10. /*  in all copies and in supporting documentation, and that the name of   */
  11. /*  Bolt Beranek and Newman Inc.  not be used in advertising or           */
  12. /*  publicity pertaining to distribution of the software without          */
  13. /*  specific, written prior permission. BBN makes no representations      */
  14. /*  about the suitability of this software for any purposes.  It is       */
  15. /*  provided "AS IS" without express or implied warranties.               */
  16. /**************************************************************************/
  17.  
  18.  
  19. #define RI_SIZE 38
  20.  
  21. struct rdpip {
  22.     struct ip ri_ip;
  23.     struct rdphdr ri_rdp;
  24. } ;
  25.  
  26. #define ri_pr        ri_ip.ip_p
  27. #define ri_len        ri_ip.ip_len
  28. #define ri_hl        ri_ip.ip_hl
  29. #define ri_src        ri_ip.ip_src
  30. #define ri_dst        ri_ip.ip_dst
  31. #define ri_ttl        ri_ip.ip_ttl
  32.  
  33. #define ri_flags    ri_rdp.rh_flags
  34. #define ri_hlen        ri_rdp.rh_hlen
  35. #define ri_sport    ri_rdp.rh_sp
  36. #define ri_dport    ri_rdp.rh_dp
  37. #define ri_dlen        ri_rdp.rh_len
  38. #define ri_sn        ri_rdp.rh_sn
  39. #define ri_an        ri_rdp.rh_an
  40. #define ri_sum        ri_rdp.rh_sum
  41.